package models

import "gorm.io/gorm"

// Companies: 企业表,包括企业号（主键，这里包含在gorm.Model中）、企业名、业务内容、注册资本、地址、所属地区、logopath、规模（文本，大中小）、简介（长文本）、面向对象、工作地点
type Companies struct {
	gorm.Model
	CompanyName  string `gorm:"type:varchar(20);not null;"`
	Business     string `gorm:"type:varchar(20);not null;"`
	RegCapital   string `gorm:"type:varchar(10);not null;"`
	Location     string `gorm:"type:varchar(20);not null;"`
	Region       string `gorm:"type:varchar(20);not null;"`
	LogoPath     string `gorm:"type:varchar(255);not null;"`
	BkPath       string `gorm:"type:varchar(255);not null;"` //背景图
	Scale        string `gorm:"type:varchar(10);not null;"`
	Introduction string `gorm:"type:varchar(512);not null;"`
	Target       string `gorm:"type:varchar(20);not null;"`
	WorkPlace    string `gorm:"type:varchar(20);not null;"`
	ReqPosition  string `gorm:"type:varchar(100);not null;"`
	Telephone    string `gorm:"type:varchar(20);not null;"`
}

// Init Data
var CompaniesInitData = []Companies{
	{
		CompanyName:  "晶科能源股份有限公司",
		Business:     "清洁能源",
		RegCapital:   "9800W",
		Location:     "江西省上饶经济技术开发区迎宾大道1号",
		Region:       "江西省",
		LogoPath:     "https://www.jinkosolar.com/images/logo.png",
		Scale:        "大厂",
		Introduction: "./intro/晶科能源股份有限公司.txt",
		Target:       "2022届毕业生",
		ReqPosition:  "营销类、研发类、生产管理类、供应链类、工艺技术类、设备设施类、品质管理类、经营管理类、人力行政类、IT技术类、财务类、工程建设类\n",
	},
	{
		CompanyName:  "永安国富资管",
		Business:     "私募基金",
		RegCapital:   "1000W",
		Location:     "浙江省杭州市上城区白云路22号109室",
		Region:       "浙江省",
		LogoPath:     "http://www.yagf.com.cn/bocweb/web/img/logo2.png?v=v1",
		Scale:        "中小厂",
		Introduction: "",
		Target:       "",
		ReqPosition:  "",
	},
	{
		CompanyName:  "安恒信息技术股份有限公司",
		Business:     "信息安全",
		RegCapital:   "7850W",
		Location:     "浙江省杭州市滨江区西兴街道联慧街188号",
		Region:       "浙江省",
		LogoPath:     "https://www.dbappsecurity.com.cn/Upload/image/20211008/20211008102715_5530.png",
		Scale:        "大厂",
		Introduction: "",
		Target:       "",
		ReqPosition:  "",
	},
	{
		CompanyName:  "杭州橙鹰数据技术有限公司",
		Business:     "数据技术",
		RegCapital:   "4155W",
		Location:     "浙江省杭州市滨江区西兴街道联慧街188号",
		Region:       "浙江省",
		LogoPath:     "https://www.dbappsecurity.com.cn/Upload/image/20211008/20211008102715_5530.png",
		Scale:        "中小厂",
		Introduction: "",
		Target:       "",
		ReqPosition:  "",
	},
}
